import request from '@/utils/request'
/**
* get list ?
* @param params {*}
*/
export function _get (params) {
    return request({
        url: '/transferRecord/getTransferRecordByPage',
        method: 'get',
        params: params
    })
}
export function _getAllTransferRecord (params) {
    return request({
        url: '/transferRecord/getAllTransferRecord',
        method: 'get',
        params: params
    })
}

export function _getInternalDispatchRecordByPage (params) {
  return request({
    url: '/transferRecord/getInternalDispatchRecordByPage',
    method: 'get',
    params: params
  })
}

export function _getReturnGoodsRecordByPage (params) {
  return request({
    url: '/transferRecord/getReturnGoodsRecordByPage',
    method: 'get',
    params: params
  })
}

/**
* get row ?
* @param params {*}
*/
export function _find (params) {
    return request({
        url: '/transferRecord/findTransferRecordByPage',
        method: 'get',
        params: params
    })
}

// 新增數據
export function _post (params) {
    return request({
        url: '/transferRecord/addTransferRecord',
        method: 'post',
        data: params
    })
}
// 內部調遣
export function _internalDispatch (params) {
  return request({
    url: '/transferRecord/internalDispatch',
    method: 'post',
    data: params
  })
}

// 修改數據
export function _put (id, params) {
    return request({
        url: '/transferRecord/editTransferRecord?idTraRec=' + id,
        method: 'put',
        data: params
    })
}
// 刪除數據
export function _delete (params) {
    return request({
        url: '/transferRecord/deleteTransferRecord',
        method: 'delete',
        params: params
    })
}
